package com.jirong.shop.service;

import com.jirong.shop.pojo.TOrder;
import com.baomidou.mybatisplus.extension.service.IService;
import com.jirong.shop.pojo.TUser;
import com.jirong.shop.vo.GoodsVo;
import com.jirong.shop.vo.OrderDetailVo;
import org.springframework.stereotype.Service;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jirong
 * @since 2022-01-16
 */
public interface TOrderService extends IService<TOrder> {

    TOrder secKill(TUser user, GoodsVo goods);

    OrderDetailVo detail(Long orderId);

    String createPath(TUser user, Long goodsId);

    boolean checkPath(TUser user, Long goodsId, String path);

    boolean checkCaptcha(TUser user, Long goodsId, String captcha);
}
